package com.xydtech.ecard.ecard.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子名片申请体验用户对象 ecard_experience_user
 *
 * @author yuzhiguo
 * @date 2024-10-23 上午8:50
 */
public class EcardApiExperienceUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 体验人姓名 */
    @Excel(name = "体验人姓名")
    private String expName;

    /** 体验人手机号 */
    @Excel(name = "体验人手机号")
    private String expPhone;

    /** 体验人机构信息 */
    @Excel(name = "体验人机构信息")
    private String expDept;

    /** 状态，1：待审批，2：审批成功，3：拒件 */
    @Excel(name = "状态，1：待审批，2：审批成功，3：拒件")
    private String state;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 微信编码 */
    private String code;

    /** 小程序appid */
    private String appId;

    /** 微信用户openId */
    private String openId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setExpName(String expName)
    {
        this.expName = expName;
    }

    public String getExpName()
    {
        return expName;
    }
    public void setExpPhone(String expPhone)
    {
        this.expPhone = expPhone;
    }

    public String getExpPhone()
    {
        return expPhone;
    }
    public void setExpDept(String expDept)
    {
        this.expDept = expDept;
    }

    public String getExpDept()
    {
        return expDept;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("expName", getExpName())
                .append("expPhone", getExpPhone())
                .append("expDept", getExpDept())
                .append("state", getState())
                .append("remark", getRemark())
                .append("creationTime", getCreationTime())
                .append("code", getCode())
                .append("appId", getAppId())
                .append("openId", getOpenId())
                .toString();
    }
}
